package cn.com.dcsgo.constants;

/**
 * 核心常量
 *
 * @author Dcsgo
 * @since 20/5/2025 上午 10:33
 */

public final class CoreConstant {
    /**
     * 用户登陆地址
     */
    public static final String LOGIN_URL = "/login";
    /**
     * 默认的父级菜单编号
     */
    public static final Long DEFAULT_PARENT_ID = 0L;
    /**
     * 菜单不显示
     */
    public static final Integer HIDDEN_STATE = 1;
    /**
     * 不跳转
     */
    public static final String NO_REDIRECT = "noRedirect";
    /**
     * 路径间隔符
     */
    public static final String URL_SPLIT = "/";
    /**
     * 菜单默认的组件地址
     */
    public static final String DEFAULT_COMPONENT = "Layout";
    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";
    /**
     * 得到验证码的地址
     */
    public static final String CAPTCHA_URL = "/captcha/getCaptcha";
    /**
     * session 的key
     */
    public static final String SESSION_KEY = "user";
    public static final String PERMISSIONS_KEY = "permissions";
    public static final String CAPTCHA_KEY = "captcha";
    /**
     * 用户类型-管理员
     */
    public static final Integer USER_TYPE_ADMIN = 0;
    /**
     * 用户类型-用户
     */
    public static final Integer USER_TYPE_NORMAL = 1;
}
